module.exports = (app) => {
  const auth = app.middleware.auth();
  // 用户模块-------------------------------------------------------------
  app.router.post('/api/user/register', app.controller.user.create); //不需要验证Token
  app.router.post('/api/user/login', app.controller.user.login); //不需要验证Token
  app.router.post('/api/user/query', app.controller.user.query); //不需要验证Token
  app.router.post('/api/user/pwd', app.controller.user.pwd); //不需要验证Token
  // 解密Token
  app.router.post('/api/user/decode', auth, app.controller.user.decode);
  app.router.post('/api/user/logout', auth, app.controller.user.logout);
  app.router.post('/api/user/page', auth, app.controller.user.page);
  app.router.post('/api/user/info', auth, app.controller.user.info);
  app.router.post('/api/user/edit', auth, app.controller.user.edit);
  app.router.post('/api/user/del', auth, app.controller.user.del);
};
